package com.tbynet.jwp.framework.bean;

public interface ErrorCodes {
    // 系统错误
    String SYSTEM_ERROR = "SYSTEM_ERROR";
    String DATABASE_ERROR = "DATABASE_ERROR";
    String NETWORK_ERROR = "NETWORK_ERROR";

    // 业务错误
    String VALIDATION_ERROR = "VALIDATION_ERROR";
    String RESOURCE_NOT_FOUND = "RESOURCE_NOT_FOUND";
    String RESOURCE_ALREADY_EXISTS = "RESOURCE_ALREADY_EXISTS";
    String OPERATION_NOT_ALLOWED = "OPERATION_NOT_ALLOWED";

    // 分类项相关错误
    String TERM_NOT_FOUND = "TERM_NOT_FOUND";
    String TERM_ALREADY_EXISTS = "TERM_ALREADY_EXISTS";
    String TERM_HAS_RELATIONS = "TERM_HAS_RELATIONS";
    String INVALID_TAXONOMY = "INVALID_TAXONOMY";
}
